package eip.chapter9.splitaggregate;

import java.io.Serializable;

/**
 * Contains information on the hotels.
 * 
 * @author nl24167
 */
public class HotelInfo implements InformationResponse, Serializable {

	private static final long serialVersionUID = -2393826437313721711L;
	
	private String hotelID;
	private String hotelName;
	private String hotelStreet;
	private int hotelStreetNumber;
	private String hotelCity;
	private String hotelTelephoneNumber;
	
	public HotelInfo() {
	}
	
	public HotelInfo(String hotelID, String hotelName, String hotelStreet, int hotelStreetNumber, String hotelLocation, String hotelTelephoneNumber) {
		this.hotelID = hotelID;
		this.hotelName = hotelName;
		this.hotelStreet = hotelStreet;
		this.hotelStreetNumber = hotelStreetNumber;
		this.hotelCity = hotelLocation;
		this.hotelTelephoneNumber = hotelTelephoneNumber;
	}
	
	public String getHotelCity() {
		return hotelCity;
	}
	
	public void setHotelCity(String hotelLocation) {
		this.hotelCity = hotelLocation;
	}
	
	public String getHotelName() {
		return hotelName;
	}
	
	public void setHotelName(String hotelName) {
		this.hotelName = hotelName;
	}

	public String getHotelStreet() {
		return hotelStreet;
	}

	public void setHotelStreet(String hotelStreet) {
		this.hotelStreet = hotelStreet;
	}
	
	public int getHotelStreetNumber() {
		return hotelStreetNumber;
	}
	
	public void setHotelStreetNumber(int hotelStreetNumber) {
		this.hotelStreetNumber = hotelStreetNumber;
	}
	
	public String getHotelTelephoneNumber() {
		return hotelTelephoneNumber;
	}
	
	public void setHotelTelephoneNumber(String hotelTelephoneNumber) {
		this.hotelTelephoneNumber = hotelTelephoneNumber;
	}

	public String getHotelID() {
		return hotelID;
	}

	public void setHotelID(String hotelID) {
		this.hotelID = hotelID;
	}

	/**
	 * toString method: creates a String representation of the object
	 * @return the String representation
	 * @author e.sale
	 */
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("HotelInfo[");
		buffer.append("hotelCity = ").append(hotelCity);
		buffer.append(", hotelID = ").append(hotelID);
		buffer.append(", hotelName = ").append(hotelName);
		buffer.append(", hotelStreet = ").append(hotelStreet);
		buffer.append(", hotelStreetNumber = ").append(hotelStreetNumber);
		buffer.append(", hotelTelephoneNumber = ").append(hotelTelephoneNumber);
		buffer.append("]");
		return buffer.toString();
	}
	
}
